package com.hzt.system.common;

import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.UUID;

public class MD5Utils {

    /**
     * 生成UUID
     * @return
     */
    public static String createUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String md5(String source,String salt,Integer hashlterationss){
        Md5Hash hash = new Md5Hash(source, salt, hashlterationss);
        return hash.toString();
    }



}
